<?
include("header.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ผู้ใช้ระบบ</title>
<link href="style/style.css" rel="stylesheet"  type="text/css"/>
</head>

<body>
<div class="main">
  <div class="main_resize">
    <div class="header">
      <div class="logo">
        <h1><a href="index.html"><span>สำนักงาน</span>ปศุสัตว์<small>จังหวัดลำปาง</small></a></h1>
      </div><!-- end logo -->
    </div><!-- end header -->
    <div class="content">
      <div class="content_bg">
        <div class="menu_nav">
          <ul>
            <li><a href="Login.html">หน้าแรก</a></li>
            <li><a href="CheckData.php">ขอใบรับรอง</a></li>
            <li><a href="Map.html">พิกัดจุดฟาร์ม</a></li>
            <li class="active"><a href="EditOwner.php">จัดการข้อมูลหลัก</a></li>
            <li><a href="Report.php">รายงาน</a></li>
            <li><a href="#">แจ้งเตือน</a></li>
          </ul>
        </div><!-- end menu_nav -->
        <div class="hbg"><img src="images/header_images.jpg" width="915" height="286" alt="header images" /></div><!-- end hbg -->
        <div class="mainbar">
          <div class="article">
            <h2><span>ผู้ใช้ระบบ</span></h2>
            <div class="clr"></div><!-- end clr -->
            	<?
				if($_REQUEST['do'] == "frmadd"){
				?>
                <form method="post" action="EditUser_action.php?do=add">
                <table border="0" cellpadding="2" cellspacing="2">
                	<tr>
                    	<td align="right">ชื่อ-นามสกุล : </td>
                        <td><input type="text" name="name"  /></td>
                    </tr>
                    <tr>
                    	<td align="right">เลขที่ : </td>
                        <td><input type="text" name="addr" pattern="\d+(\/\d{1,2})?" maxlength="6" size="6" /></td>
                    </tr>
                    <tr>
                    	<td align="right">มือถือ : </td>
                        <td><input type="text" name="phone" pattern="\d{2}-\d{4}-\d{4}" maxlength="12" size="12" /></td>
                    </tr>
                    <tr>
                    	<td align="right">Username : </td>
                        <td><input type="text" name="username" pattern="^[a-zA-Z][a-zA-Z0-9-_\.]{3,20}$"  /></td>
                    </tr>
                    <tr>
                    	<td align="right">Password : </td>
                        <td><input type="text" name="password" pattern="(?=^.{4,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$"  /></td>
                    </tr>
                    <tr>
                    	<td align="right">ConfirmPassword : </td>
                        <td><input type="text" name="confirm" pattern="(?=^.{4,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$"  /></td>
                    </tr>
                </table>
                </form>
				<?
				}
				?>
            <div class="clr"></div><!-- end clr -->
          </div><!-- end article -->
        </div><!-- end mainbar -->
        <div class="sidebar">
          <div class="gadget">
            <div class="search">
              <form method="get" id="search" action="">
                <span>
                <input type="text" value="Search..." name="s" id="s" />
                <input name="searchsubmit" type="image" src="images/search.gif" value="Go" id="searchsubmit" class="btn"  />
                </span>
              </form>
              <!--/searchform -->
              <div class="clr"></div>
            </div><!-- end search -->
          </div><!-- end gadget -->
          <div class="gadget">
            <h2 class="star"><span>เมนู</span> ย่อย</h2>
            <div class="clr"></div>
            <ul class="sb_menu">
              <li><a href="EditOwner.php">เจ้าของฟาร์ม</a></li>
              <li><a href="EditFarm.php">ฟาร์ม</a></li>
              <li><a href="EditPaper.php">เอกสาร</a></li>
              <li><a href="EditVeterinary.php">สัตวแพทย์</a></li>
              <li><a href="EditAnimalHusbandman.php">สัตวบาล</a></li>
              <li><a href="EditPhoto.php">รูปภาพ</a></li>
              <li class="active"><a href="EditUser.php">ผู้ใช้ระบบ</a></li>
            </ul><!-- end sb_menu -->
          </div><!-- end gadget -->
        </div><!-- end sidebar -->
        <div class="clr"></div>
      </div><!-- end content_bg -->
      <div class="fbg"><!-- end fbg_resize -->
      </div><!-- end fbg -->
    </div><!-- end content -->
    <div class="footer">
      <div class="footer_resize">
        <p class="lf">สำนักงานปศุสัตว์จังหวัดลำปาง Tel 0-5421-8127 Fax. 0-5421-7550 <a href="http://dld.go.th/pvlo_lpg/th/">MyWebSite</a>.</p>
        <p class="rf">E-mail: pvlo_lpg@dld.go.th <a href="http://www.hotmail.com/">ติดต่อ</a></p>
        <div class="clr"></div>
      </div><!-- end footer_resize -->
    </div><!-- end footer -->
  </div><!-- end main_resize -->
</div><!-- end main -->
</body>
</html>



